package com.yanqu.road.server.timer.activity;

import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.share.ShareModule;
import com.yanqu.road.server.manger.player.GamePlayerMgr;
import com.yanqu.road.utils.executor.GeneralTask;

public class ShareActivitySyncTask extends GeneralTask {
    @Override
    public void doRun() {
        try {
            for (GamePlayer player : GamePlayerMgr.getPlayerMap().values()) {
                player.getModule(ShareModule.class).syncData();
            }
        } catch (Exception e) {

        }
    }
}
